package com.kaili.basic.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.NotNull;

/**
 * Created by rzh on 18-12-17.
 */
@Data
public class BaseCustomerAddEwbDto {
    @ApiModelProperty(name = "address", value = "客户地址")
    @NotEmpty(message = "客户地址不能为空")
    private String address;
    @ApiModelProperty(name = "companyName", value = "客户公司")
    @NotEmpty(message = "客户公司不能为空")
    private String companyName;

    @ApiModelProperty(name = "name", value = "客户姓名")
    @NotEmpty(message = "客户姓名不能为空")
    private String name;

    @ApiModelProperty(name = "telephone", value = "联系电话")
    @NotEmpty(message = "联系电话不能为空")
    private String telephone;

    @ApiModelProperty(name = "countyNum", value = "县/区Id")
    @NotNull(message = "县/区不得为空")
    private Integer countyNum;

    @ApiModelProperty(name = "cityNum", value = "城市Id")
    @NotNull(message = "城市不得为空")
    private Integer cityNum;

    @ApiModelProperty(name = "provinceNum", value = "省份Id")
    @NotNull(message = "省份不得为空")
    private Integer provinceNum;
    @ApiModelProperty("经度")
    private String longitude;
    @ApiModelProperty("纬度")
    private String latitude;

}
